* {
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  font-family: Arial, sans-serif;
}

a {
  text-decoration: none;
  color: black;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  /* 项目之间的间距 */
  padding: 20px;
  justify-content: space-evenly;
}

.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-flow: row wrap;
  gap: 20px;
  /* 项目之间的间距 */
}

.links ul li {
  width: 175.57px;
  padding: 10px;
  box-sizing: border-box;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
  text-align: center;
}

.links ul li:hover {
  transform: translateY(-5px);
  /* 悬停时向上移动 */
}

.links ul li img {
  width: 100%;
  height: 200px;
  border-radius: 5px;
}

.links ul li a {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

#searchBox {
  width: 350px;
  border: 1px solid #999;
  border-radius: 8px;
  display: flex;
  align-items: center;
  margin: 20px auto;
}

#textSearch {
  flex: 1;
  padding: 8px;
  border: none;
  outline: none;
  font-size: 16px;
}

#buttonSearch {
  padding: 8px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.type {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-top: 10px;
}

.type div {
  padding: 10px 20px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  margin: 0 10px;
}

.type div:hover {
  transform: translateY(-2px);
  /* 悬停时向上移动 */
}

#loading img {
  width: 150px;
}

/* 类型标签过渡效果 */
.type {
  opacity: 0;
  transform: translateY(-20px);
  /* 初始位置向上偏移 */
  transition: opacity 0.5s, transform 2s;
  margin-left: 4px;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
}

#backToTop:hover {
  opacity: 1;
}

/* 加载效果CSS */
#loading {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.no-result {
  color: #888;
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  padding: 20px;
  border: 2px dashed #ccc;
  /* 虚线边框 */
  border-radius: 10px;
  background-color: #f9f9f9;
  width: 300px;
  margin: 50px auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  /* 阴影效果 */
}